Skip to content

[5.3] Remove un-used variables#45045

Merged
rdeutz merged 2 commits intojoomla:5.3-devfrom
joomdonation:remove_unused_variables
Mar 8, 2025
Merged

[5.3] Remove un-used variables#45045
rdeutz merged 2 commits intojoomla:5.3-devfrom
joomdonation:remove_unused_variables

Conversation

@joomdonation
Copy link
Contributor

Pull Request for Issue # .

Summary of Changes

This simple PR remove the un-used variables in several methods across our code base. The rector rule RemoveUnusedVariableAssignRector help detects these variables. There are more un-used variables, but I only remove the most obvious one.

Testing Instructions

Code review. With a modern IDE like PHPStorm, you can easily check and see these variables are not used at all in the method it is defined/assigned value.

Actual result BEFORE applying this Pull Request

Works

Expected result AFTER applying this Pull Request

Works

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

@QuyTon
Copy link
Contributor

QuyTon commented Mar 1, 2025

I have tested this item ✅ successfully on 318ceb5


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45045.

1 similar comment
@viocassel
Copy link
Contributor

I have tested this item ✅ successfully on 318ceb5


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45045.

@alikon
Copy link
Contributor

alikon commented Mar 1, 2025

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45045.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Mar 1, 2025
@rdeutz rdeutz added this to the Joomla! 5.3.0 milestone Mar 8, 2025
@rdeutz rdeutz enabled auto-merge (squash) March 8, 2025 18:27
@rdeutz rdeutz merged commit d49e6ed into joomla:5.3-dev Mar 8, 2025
3 checks passed
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Mar 8, 2025
@joomdonation joomdonation deleted the remove_unused_variables branch March 9, 2025 02:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants